package com.springboot.mall.model.mappers;


import com.springboot.mall.model.entity.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {
    Category selectByName(String name);
    int insertSelective(Category record);
    int updateByPrimaryKeySelective(Category record);
    Category selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    List<Category> selectList();
    List<Category> selectCategoriesByParentId(Integer parentID);

}
